<p>
  <b>Code:</b>
  <%=h room.code %>
</p>

<p>
  <b>Stock:</b>
  <%=h room.stock %>
</p>

<p>
  <b>Capacity:</b>
  <%=h room.capacity %>
</p>

<p>
  <b>Company:</b>
  <% if room.company != nil %><%=h room.company.name %><%end%>
</p>
<p>
  <h2>Networks :</h2>
  
		<% Network.all.each do |network| %>
      	  <%if room.networks.include?(network)%>
			<ul><%= link_to network.name, network %></ul>
		  <%end%>
		<%end%>
	
</p>
<p>
  <h2>Computers:</h2>
  <table>
	  <tr class="ui-state-default">
	    <th>Name</th>
	    <th>Network</th>
	    <th>Ip address</th>
	    <th>Status</th>
	  </tr>
  	  <% room.computers.each do |computer| %>
	      <tr>
		    <td><%=link_to computer.name, computer %></td>
		    <td><% if computer.network != nil %><%=h computer.network.name %><%end%></td>
		    <td><%=h computer.ip_address %></td>
		    <td><%=h Computer::COMPUTER_STATUS[computer.status] %></td>
		  </tr>
	  <%end%>
  </table>
</p>


